/** @format */

import {createApp} from 'vue';
import './style.css';
import App from './App.vue';
// 引入路由器
import router from './router';
import {createPinia} from 'pinia';

import myDirective from '@/directive';

const app = createApp(App);
const pinia = createPinia();

app.use(router);
app.use(pinia);
//利用插件方式注册指令
app.use(myDirective);
app.directive('global-test', {
    mounted(el, binding) {
        // console.log(binding.value);
    },
});

// 挂载整个应用到app容器中
app.mount('#app');
